package io;

import java.io.FileOutputStream;
import java.io.IOException;

public class TestDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("dos.txt");
        for(char i='a';i<='z';i++){
            fos.write(i);
        }

        System.out.println("写入成功");
        fos.close();
    }
}
